﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using Urb.Weather.Core;
using Urb.Weather.Core.Container;
using Urb.Weather.Core.UI;

namespace Urb.Weather.Ticker.UI
{
    [Export(typeof(IUIModule))]
    public class UIModule : IUIModule
    {
        public void Configure(IContainer container)
        {
            container
                .RegisterType<IMainView, MainView>()
                .RegisterType<IMainViewModel, MainViewModel>()
                ;

            Dispatcher dispatcher = new Dispatcher(new Button());

            container
                .RegisterInstance<IDispatcher>(dispatcher);
        }
    }
}
